Repository navigation
Massive incoming particles built by the phase-space mapping (#506) - #532
ramonpeter wants to merge 8 commits into
Conversation
…#506) PhaseSpaceMapping returns massive incoming particles (W and Z beams, muons with a mass, massive partons) on their mass shells, as madevent's genps.f builds them (mom2cx), with an inverse that takes the massive momenta, and DifferentialCrossSection takes the matching flux. This replaces the step of #502 in the Integrand (incoming_on_shell after the mapping, with the flux ratio in the weight), which is removed here. Mapping - Without a t-channel chain (s-channel, rambo, 2 -> 1) and in the chain of the propagator mode the beams are built massive in the partonic frame (com_p_in_massive). The chain scatters off them with massive versions of its 2 -> 2 blocks, chosen when the graph is built so that the massless kernels stay as they are. - t_inv_min_max_massive (and its value and cut variants) does not clamp the |t| range at 0, since t > 0 is reached near the forward direction off a massive beam. - The Invariant samples |t| - min(|t|_min, 0), which is |t| wherever the range stays at or above 0. - t_rapidity_clamp_massive has the rapidity bounds with the kinematics of massive beams in their rest frame, written without cancellations. - The ETmin bound of a massive beam keeps its lower end only, from 2 pa.p1 >= pa_+ p1_-, which never cuts into the phase space. - Chili and the color-ordered chain build the final state against the massless pair with the same sum and put it on its mass shells afterwards (incoming_on_shell, now with light-cone components and an above_threshold output in place of the flux ratio). For chili, whose final state fixes the incoming momenta, that is its construction. The color-ordered chain has no massive versions of its double-t and 2 -> 3 blocks yet. The Jacobian is that of the massless pair, since dPhi_n depends on the sum only. - s_hat is sampled from (m1 + m2)^2 on. A 2 -> 1 process or fixed beams below that give an empty mapping, chili points below it no weight. Cross section - DifferentialCrossSection(incoming_masses=...) uses the flux 1/(2 sqrt(lambda(s_hat, m1^2, m2^2))) (diff_cross_section_massive), and Integrand checks that the cross sections have the masses of the mapping. Checks - Massless beams give forward and inverse bitwise identical to the parent commit for rambo, propagator, chili and color-ordered, leptonic and hadronic, with and without cuts. - madspace/tests/test_massive_incoming.py (30 tests) covers momenta on shell with the same sum, the inverse, the phase-space volume of massless beams with and without cuts, every |t| that passes the cuts inside the massive rapidity and ETmin ranges, the massless limit of the massive kernels and the flux. The rest of the suite fails as on the parent commit. - mg7 against madevent and against the parent commit (#502 with its Integrand step) w+ w- > t t~, W beams 2 x 500 GeV 26.98(4) pb madevent 26.99(7) parent 27.01(4) w+ w- > t t~, W beams 400/600 GeV 27.66(4) pb madevent 27.71(6) parent 27.73(4) mu+ mu- > t t~ (sm-lepton_masses) 0.16615(20) madevent 0.1664(1) parent 0.16655(20) EVA w+ w- > t t~, 2 x 15 TeV 0.011207(32) parent 0.011197(31) w+ w- > z z, W beams 2 x 500 GeV 312.6(8) parent 312.2(7) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ud6YhkZXK3uDs1Z3nwdTi1
Each subprocess passes its incoming masses to DifferentialCrossSection, for the flux 1/(2 sqrt(lambda(s_hat, m1^2, m2^2))) of the massive incoming particles the phase-space mapping builds. The test of #502 for the on-shell kernel checks its above_threshold output in place of the flux ratio, and the comment in madgraph_process.py now says that the mapping puts the incoming momenta on their mass shells. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ud6YhkZXK3uDs1Z3nwdTi1
ColorOrderedMapping builds massive beams on their mass shells, as the
propagator chain does, and every block of the chain scatters off them with
massive versions of its kernels, chosen when the graph is built. The
projection onto the massless pair (incoming_on_shell) is left for chili,
whose final state fixes the incoming momenta.
Kernels
- Double-t block: the |t1| and |t2| ranges, their ETmin bounds, the rapidity
clamps and the scattering with the Jacobian pi / (2 sqrt(lambda)), in the
light-cone components of the beams in their rest frame. |t1| reaches down
to -(ma - m1)^2 where p1 can move with the velocity of pa.
- 2 -> 3 block: the |t1| range of the massive 2 -> 2 kernels, the recoil
ETmin floor of s23 for a massive pa, and the floor of -(p2 - k)^2 in the
step with the opposite beam as recoil (recoil_v_min_massive).
- The ETmin bounds of the massive 2 -> 2 kernels keep both ends now, each the
least or largest value of a light-cone product instead of a dropped term.
Off W and Z beams the lower ends had been up to ma^2 too low.
- Invariant::build_forward_shifted samples x - 2 min(x_min, 0), so that a
range reaching below 0 starts at |x_min| rather than at the pole of the
power law. With 1/|t| sampling and cuts the shift by min(x_min, 0) put most
points just above a lower edge that the cuts reject.
- massive_incoming_masses in base, for TPropagatorMapping and
ColorOrderedMapping.
Checks
- Massless beams give forward and inverse bitwise identical to the parent
commit for rambo, propagator, chili and every color-ordered topology
(single chain, double-t with a walk or a pair, central 2 -> 2), leptonic
and hadronic, with and without cuts.
- test_massive_incoming.py (56 tests) checks, off W and Z beams, the
phase-space volume of every topology against massless beams above the
threshold, with and without cuts and with at least half their cut
efficiency, the inverse, the weighted distributions against rambo, every
event inside the massive double-t, s23 and v ranges and clamps, and the
massless limits of the new kernels. The rest of the suite fails as on the
parent commit.
- mg7 with the propagator chain, against madevent and the parent commit
w+ w- > t t~, W beams 2 x 500 GeV 27.02(4) pb madevent 26.99(7) parent 26.98(4)
w+ w- > t t~, W beams 400/600 GeV 27.64(4) pb madevent 27.71(6) parent 27.66(4)
mu+ mu- > t t~ (sm-lepton_masses) 0.16638(20) madevent 0.1664(1) parent 0.16615(20)
EVA w+ w- > t t~, 2 x 15 TeV 0.011255(33) parent 0.011207(32)
w+ w- > z z, W beams 2 x 500 GeV 313.2(8) parent 312.6(8)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ud6YhkZXK3uDs1Z3nwdTi1
…50f744' into massive
|
@oliviermattelaer this removes the integrand fix in #502 and instead builds the massive incoming particles directly in the mapping. |
How CI reacts to this PR
|
The macOS wheel build failed test_massive_kernels_have_the_massless_limit and test_double_t_kernels_have_the_massless_limit in its scalar mode, for 4 of 20000 and 15 of 50000 events. Where the ETmin floors leave no recoil, the massless kernels get a cut range of zero width and fall back to the kinematic one. The fused multiply-adds of the scalar build on arm64 leave the mass^2 of a massless beam a rounding error of either sign. A positive one gave the massive cut range a width of that size, which kept a sliver far from the massless range. An empty cut range now stays empty in t_cut_bounds_etmin_massive and doublet_t1_etmin_clamp_massive. Both tests now also run with beams whose components carry a relative error of 4e-16, which fails the same way on x86 without this fix. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ud6YhkZXK3uDs1Z3nwdTi1
Chili reads x1 and x2 off the final state, which lepton beams do not leave free. For fixed beams PhaseSpaceMapping handed chili 3n - 4 random numbers where it takes 3n - 2, and the run crashed, with massless beams too. With a dressed-lepton density it skipped the split of the luminosity, so 1 - x was never set and the run crashed as well. ChiliMapping(fixed_beams=True) generates the first n - 2 momenta as chili does and the last two as the two-body decay of Q = P - sum p_i in the rest frame of Q, from 3n - 4 random numbers. The rapidity of a particle runs up to its largest energy, reached with the others at their least mass, so a heavy particle among the first n - 2 keeps all of its phase space. The inverse reads the rapidity off as sign(pz) log((E + |pz|) / mT), which keeps its precision far forward. PhaseSpaceMapping takes it for chili with fixed beams. With a dressed-lepton density the split samples s_hat, x1 and x2 as for the other modes, and chili builds the final state for fixed beams at sqrt(s_hat) in the partonic frame, without the rapidity bounds of the cuts, which hold in the lab. In both cases the mapping builds the beams itself, on their mass shells if they are massive. The first n - 1 momenta of hadronic chili move into chili_head_forward and chili_head_inverse with the same operations, and its output is bitwise the same. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ud6YhkZXK3uDs1Z3nwdTi1
madspace: chili for lepton beams
|
Two additions on top of the review state: a fix for the failing macOS CI (b704ab5) and chili for lepton beams, merged from #533. CI fix: empty ETmin ranges of the massive kernels stay emptyThe macOS wheel build failed Where the ETmin floors leave no recoil, the massless kernels get a cut range of zero width and fall back to the kinematic one.
Chili for lepton beams (#533)With this,
Cross sections at 100k events per run, chili against the propagator mapping, repeated runs combined.
The eight pulls give χ² = 3.6 for 8 degrees of freedom. |
Closes #506. Base: #502 (
claude/eva-mg7-helicity-density-50f744).Massive incoming particles built by the phase-space mapping
PhaseSpaceMappingnow returns massive incoming particles (W and Z beams, muons with a mass, massive partons) on their mass shells, as madevent'sgenps.fbuilds them (mom2cx).Its inverse takes the massive momenta, so the channel weights and Python users of the mapping see the momenta the matrix element sees.
DifferentialCrossSectionuses the matching flux 1/(2√λ(ŝ, m1², m2²)).The on-shell step that #502 adds to the Integrand is removed. The Integrand now only checks that the cross sections carry the incoming masses of the mapping.
Mapping
com_p_in_massive).Invariant::build_forward_shifted). The sampled range then starts at |x_min|, away from the pole of the power law, which keeps the cut efficiency of massless beams.incoming_on_shell). The Jacobian is unchanged, because dΦ_n depends only on the total momentum.Cross section
DifferentialCrossSection(incoming_masses=...)usesdiff_cross_section_massive.Checks
madspace/tests/test_massive_incoming.pyhas 56 tests, all passing. Off W and Z beams they check:test_mg7_massive_incoming.py,test_eva_mg7.pyandtest_gamma_upc.pypass.The six pulls give χ² = 6.5 for 6 degrees of freedom. Per t-channel mode (propagator, rambo, and chili for EVA) the two agree within 0.6σ.
The following were not run: the GPU builds (no CUDA in the test environment), an
[amplicol]process with massive beams (no pyAmpliCol build), and a proton-PDF process with massive partons (no LHAPDF set).Not in this PR
🤖 Generated with Claude Code
https://claude.ai/code/session_01Ud6YhkZXK3uDs1Z3nwdTi1